package com.cmas.platform.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cmas.platform.domain.RegionMap;
import com.cmas.platform.vo.SectionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.cmas.platform.domain.Section;

import java.util.List;

/**
 * 版块管理Mapper接口
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-14
 */
@Mapper
public interface SectionMapper extends BaseMapper<Section>
{

    /**
     * 批量删除版块管理
     * @param ids 需要删除的版块管理ID集合
     * @return
     */
    public int deleteSectionByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    /**
     * 获取最大编号
     * @param section 版块管理
     * @return 结果
     */
    public Integer findMaxSort(Section section);


    /**
     * 获取数组版块
     * @param
     * @return
     */
    public List<SectionVo> selectSectionList(@Param(Constants.WRAPPER)QueryWrapper<Section> setQueryWrapper);

}
